import request from "@/utils/request";

type Result<T = undefined>= {
    code: string,
    message: string,
    data: T
}
// 请求商品
export function CommodityList(count:Number,limitNum = 10){
    return request.get<any,Result<Product[]>>('/pro/list',{
        params:{
            count,
            limitNum
        }
    })
}